package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 教师收益表
 * @TableName teacher_earnings
 */
@TableName(value ="teacher_earnings")
@Data
public class TeacherEarnings {
    /**
     * 收益记录ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 教师ID
     */
    private Long teacherId;

    /**
     * 课程ID
     */
    private Long courseId;

    /**
     * 收益金额
     */
    private BigDecimal earningAmount;

    /**
     * 收益状态：待结算/可提现
     */
    private Object earningStatus;

    /**
     * 创建时间
     */
    private Date createdAt;
}